package com.kgc.xsProvider.dao;

import com.kgc.xs.pojo.SalesOrders;
import com.kgc.xs.pojo.SalesOrdersDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SalesOrdersMapper {

    List<SalesOrders> selectSalesOrdersByPage(Map<String, Object> map);

    int insertSalesOrders(SalesOrders salesOrders);

    int updateSalesOrders(SalesOrders salesOrders);

    int deleteSalesOrders(Map<String, Object> map);

    SalesOrders selectSalesOrdersById(int id);

    int checkSalesOrdersById(Map<String, Object> map);

    List<SalesOrdersDetail> selectSalesOrdersDetailByPage(Map<String, Object> map);

    int insertSalesOrdersDetail(SalesOrdersDetail salesOrdersDetail);

    int updateSalesOrdersDetail(SalesOrdersDetail salesOrdersDetail);

    int deleteSalesOrdersDetail(Map<String, Object> map);

    SalesOrdersDetail  selectSalesOrdersDetailById(int id);

    int checkSalesOrderDetail(Map<String, Object> map);

    SalesOrders selectSalesOrdersByCode(String docCode);

    List<SalesOrdersDetail> selectSalesOrdersDetailByCode(String xsOrderCode);

    int insertCheck(@Param("code") String code, @Param("checkManId") Integer checkManId, @Param("checkComment") String checkComment);


}
